
/**
 * Comedian is a Sub-class of Performance. Added to the Performance's features, this class let you define and get the name of the comedian's show
 * 
 * @author Mathieu Reymond & Jonathan Smet
 * @version 03/05/11
 */
public class Comedy extends Performance
{
    private String showName;
    
    /**
     * Create  a new comedy
     * 
     * @param title The name of the comedian
     * @param description A short description of the comedian and his show
     * @param podium The place where the show will happen
     * @param showName The name of the comedy
     * @param duration The show's duration
     */
    public Comedy(String title, String description, String podium, String showName, int duration)
    {
        super(title, "Comedy", description, podium);
        this.showName = showName;
        setDuration(duration);
    }
    
    /**
     * Set the duration of the show (in minutes)
     * 
     * @param The duration of the show (in minutes)
     */
    protected void setDuration(int duration)
    {
        super.setDuration(duration*60);
    }
    
    /**
     * Get the name of the show
     * 
     * @return The name of the show
     */
    public String getShowName()
    {
        return showName;
    }
    
      /**
     * Give a String of the Details
     * 
     * @return A String of the Details
     */
    public String getDetails()
    {
        String details = super.getDetails();
        return details + "Show name : " + showName;
    }

}
